package UserUnit;
//This class will contain the original photo to be donwloaded

import java.io.FileNotFoundException;
import java.io.Serializable;
import java.util.List;
import java.util.Map;

public class ImpPhoto implements Photo, Serializable {

    String idFile, name, extension, comment, url, userId, day, month, year, hours, minutes, width, high, size;
    List<String> tags;
    Map<String, String> taxonomy;
    ImpSamplePhoto thumbnail;

    public ImpPhoto() {
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public void setFile(String idFile, String name, String extension) {
        this.idFile = idFile;
        this.name = name;
        this.extension = extension;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setExtension(String extension) {
        this.extension = extension;
    }

    public void setUpdateDate(int days, int months, int years) {
        day = String.valueOf(days);
        month = String.valueOf(months);
        year = String.valueOf(years);

    }

    public void setHour(int hour, int minute) {
        hours = String.valueOf(hour);
        minutes = String.valueOf(minute);

    }

    public void setDimension(int widths, int highh) {
        width = String.valueOf(widths);
        high = String.valueOf(highh);

    }

    public void setSize(double sizee) {
        size = String.valueOf(sizee);
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public void setTags(List tags) {
        this.tags = tags;
    }

    public void setTaxs(Map taxonomy) {
        this.taxonomy = taxonomy;
    }

    public void setThumbnail(String urlIcon) {
        this.thumbnail = new ImpSamplePhoto();
        this.thumbnail.setIcon(urlIcon);
    }

    public String getUserId() {
        return userId;
    }

    public String getFile() {
        return idFile + " " + name + " " + extension;
    }

    public String getIdFile() {
        return idFile;
    }

    public String getFileName() {
        return name;
    }

    public String getFileExtension() {
        return extension;
    }

    public String getUpdateDate() {
        return day + "/" + month + "/" + year;
    }

    public String getDay() {
        return day;
    }

    public String getMonth() {
        return month;
    }

    public String getYear() {
        return year;
    }

    public String getHour() {
        return hours + ":" + minutes;
    }

    public String getHours() {
        return hours;
    }

    public String getMinutes() {
        return minutes;
    }

    public String getDimensions() {
        return width + "X" + high;
    }

    public String getWidth() {
        return width;
    }

    public String getHigh() {
        return high;
    }

    public String getSize() {
        return size;

    }

    public String getComment() {
        return comment;
    }

    public String getUrl() {
        return url;
    }

    public List getTags() {
        return tags;
    }

    public Map getTaxs() {
        return taxonomy;
    }

    public ImpSamplePhoto getThumbnail() {
        return thumbnail;
    }
}
